function initBookCandidate(){
    $('.ui-datagrid-data').imagesLoaded( function(){
        $('.ui-datagrid-data').masonry({
            itemSelector: '.ui-datagrid-column',
            isAnimated: !Modernizr.csstransitions,
            columnWidth: function( containerWidth ) {
                return containerWidth / 4;
            }
        });
    });
    
    
}

function overlayEvent(){
    $(".ui-widget-overlay").click(function(){
        pictureDialog.hide();
    });
}